#include "Object2D.hpp"

Object2D::Object2D()
{
}

Object2D::Object2D(QString const& name, QString const& path, const int width, const int height, const int positionX, const int positionY):
    _name(name),
    _path(path),
    _width(width),
    _height(height),
    _positionX(positionX),
    _positionY(positionY)
{
}

QString const&  Object2D::getName() const
{
    return _name;
}

void            Object2D::setName(QString const& name)
{
    _name = name;
}

QString const&  Object2D::getPath() const
{
    return _path;
}

void            Object2D::setPath(QString const& path)
{
    _path = path;
}

int             Object2D::getWidth() const
{
    return _width;
}

void            Object2D::setWidth(const int width)
{
    _width = width;
}

int             Object2D::getHeight() const
{
    return _height;
}

void            Object2D::setHeight(const int height)
{
    _height = height;
}

void            Object2D::setDimensions(const int newWidth, const int newHeight)
{
    _width = newWidth;
    _height = newHeight;
}

int             Object2D::getPositionX() const
{
    return _positionX;
}

void            Object2D::setPositionX(const int positionX)
{
    _positionX = positionX;
}

int             Object2D::getPositionY() const
{
    return _positionY;
}

void            Object2D::setPositionY(const int positionY)
{
    _positionY = positionY;
}

void            Object2D::setPosition(const int positionX, const int positionY)
{
    _positionX = positionX;
    _positionY = positionY;
}
